import 'package:json_annotation/json_annotation.dart';

part 'personalInfo.g.dart';

@JsonSerializable()
class PersonalInfo {
  PersonalInfo(
    this.birthDate,
    this.dependents,
    this.education,
    this.email,
    this.fullName,
    this.gender,
    this.maritalStatus,
    this.validationInfo,
  );

  String birthDate;
  int dependents;
  String education;
  String email;
  String fullName;
  String gender;
  String maritalStatus;
  String validationInfo;
  factory PersonalInfo.fromJson(Map<String, dynamic> json) => _$PersonalInfoFromJson(json);
  Map<String, dynamic> toJson() => _$PersonalInfoToJson(this);
  // 命名构造函数
  PersonalInfo.empty();
}
